import { defineComponent, ref } from "vue";

export default defineComponent({
    props: {

    },
    data() {
        return {
            a: 10
        }
    },
    render() {
        return (
            <div>
                测试一下tsx
                {this.a}
            </div>
        )
    },
    setup() {
        const b = ref(10111)
        const testFn = () => {
            console.log(987654)
        }
        // 优先使用setup的render
        return () => <div
            style={{
                color: 'red'
            }}
            onClick={testFn}>测试一下tsx{b.value}</div>
    }
})
